package a02;

import java.awt.Color;

import util.Pair;

public class TicTacToeControl extends RegularControl<Pair<Byte, Byte>> {

    private static final long serialVersionUID = 1L;

    public TicTacToeControl() {
	this(new TicTacToe());
    }
    
    public TicTacToeControl(TicTacToe ttt) {
	this(ttt,0);
    }

    public TicTacToeControl(TicTacToe ttt, int kiLevel) {
	super(ttt, "TicTacToe");
	super.getBoard().setPlayerColors(Color.BLUE, "BLAU", Color.RED, "ROT");
	super.getBoard().setTicTacToeMode(true);
	super.getBoard().setTableColor(Color.WHITE);
	super.getBoard().setGridActive(true, Color.BLACK);
	refresh();
	
    }

    @Override
    public TicTacToe getNewGame() {	
	return new TicTacToe();
    }  
}
